package com.nbst.model.mes;

import java.util.Date;

/**
 * 
 * @ClassName: OrderNeedEntryHistory
 * @Description:订单物料需求历史记录（作为外购/生产出入库撤销时回写OrderNeedEntry的依据）
 * @author King
 * @date 2019年9月20日
 *
 */
public class OrderNeedEntryHistory {

	/** 出入库单id(生产入库单与外购入库单) */
	private Integer fInterID;

	/** 订单分录主键 */
	private Integer fDetailID;

	/** 上级物料代码 */
	private String fPNumber;

	/** 本级物料内码 */
	private Integer fItemID;

	/** 出入库前的占用库存数 */
	private Double fStockQty;

	/** 出入库前的需求数 */
	private Double fNeedQty;

	/** 出入库前的占用任务单数 */
	private Double fNeedIcmoQty;

	/** 出入库前的占用在途数 */
	private Double fRoadQty;
	
	/** 出入库前的需求总数 */
	private Double fTotal;

	/** 日期 */
	private Date fDate;

	/** 关闭标志 0关闭 */
	private Integer fClosed;

	/** 更新时间 */
	private Date updateTime;
	
	/**类型    1生产入库   2外购入库  3生产出库*/
	private Integer fType;
	
	/**本次出入库数量*/
	private Double fQty;

	public Integer getfInterID() {
		return fInterID;
	}

	public void setfInterID(Integer fInterID) {
		this.fInterID = fInterID;
	}

	public Integer getfDetailID() {
		return fDetailID;
	}

	public void setfDetailID(Integer fDetailID) {
		this.fDetailID = fDetailID;
	}

	public String getfPNumber() {
		return fPNumber;
	}

	public void setfPNumber(String fPNumber) {
		this.fPNumber = fPNumber;
	}

	public Integer getfItemID() {
		return fItemID;
	}

	public void setfItemID(Integer fItemID) {
		this.fItemID = fItemID;
	}

	public Double getfStockQty() {
		return fStockQty;
	}

	public void setfStockQty(Double fStockQty) {
		this.fStockQty = fStockQty;
	}

	public Double getfNeedQty() {
		return fNeedQty;
	}

	public void setfNeedQty(Double fNeedQty) {
		this.fNeedQty = fNeedQty;
	}

	public Double getfNeedIcmoQty() {
		return fNeedIcmoQty;
	}

	public void setfNeedIcmoQty(Double fNeedIcmoQty) {
		this.fNeedIcmoQty = fNeedIcmoQty;
	}

	public Double getfRoadQty() {
		return fRoadQty;
	}

	public void setfRoadQty(Double fRoadQty) {
		this.fRoadQty = fRoadQty;
	}

	public Date getfDate() {
		return fDate;
	}

	public void setfDate(Date fDate) {
		this.fDate = fDate;
	}

	public Integer getfClosed() {
		return fClosed;
	}

	public void setfClosed(Integer fClosed) {
		this.fClosed = fClosed;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getfType() {
		return fType;
	}

	public void setfType(Integer fType) {
		this.fType = fType;
	}

	public Double getfTotal() {
		return fTotal;
	}

	public void setfTotal(Double fTotal) {
		this.fTotal = fTotal;
	}

	public Double getfQty() {
		return fQty;
	}

	public void setfQty(Double fQty) {
		this.fQty = fQty;
	}

	@Override
	public String toString() {
		return "OrderNeedEntryHistory [fInterID=" + fInterID + ", fDetailID=" + fDetailID + ", fPNumber=" + fPNumber
				+ ", fItemID=" + fItemID + ", fStockQty=" + fStockQty + ", fNeedQty=" + fNeedQty + ", fNeedIcmoQty="
				+ fNeedIcmoQty + ", fRoadQty=" + fRoadQty + ", fTotal=" + fTotal + ", fDate=" + fDate + ", fClosed="
				+ fClosed + ", updateTime=" + updateTime + ", fType=" + fType + ", fQty=" + fQty + "]";
	}

}